# -*- coding: utf-8 -*-
# @Time : 2021/4/12 17:15
# @Author : XXX
# @Site : 
# @File : zy2021-4-12.py
# @Software: PyCharm

#第一题
# km = ["语文","数学","英语"]
# xm = [88,90,100] #小明
# xh = [77,91,100] #小红
# xj = [96,91,99]  #小娟
#
#
# print(max(xm)) #小明最高分数
# print(sum(xh) / len(xh)) #小红平均分
# print(sum(xj)) #小娟总分数
#
# #分别用字典输出每个人科目与成绩，并给字典赋值
# dict_1 =  dict(zip(km,xm));print('小明',dict_1)
# dict_2 =  dict(zip(km,xh));print('小红',dict_2)
# dict_3 =  dict(zip(km,xj));print('小娟',dict_3)
#
# #打印小明和小红相同科目的分数
# set_xm = set(xm)
# set_xh = set(xh)
# set_xj = set(xj)
# print(set_xm | set_xh)
#
# #打印小红和小娟分数不同的科目的分数
# print(set_xh ^ set_xj)
#
# #打印小明和小娟所有不相分数并去重
# print(set_xm ^ set)


#第二题
# str= ("name")
# str1 = ("age")
# print(list(str))
# print(tuple(str))
# print(dict(zip(str,str1)))

#第三题
#list=["name","hong"]
# list2 = ["aa","bb"]
# print("".join(list))
#print(type(set(list)))
# print(tuple(list))
# print(dict(zip(list,list2)))

#第四题
# tuple = ("后羿","鲁班7号","孙猴子","武则天")
# tuple1 = ("a","b","c","d")
# print("".join(tuple))
# print(set(tuple))
# print(list(tuple))
# print(dict(zip(tuple,tuple1)))

#第五题
# set = {"name","age"}
# set1 = {"xxx","111"}
# print("".join(set))
# print(tuple(set))
# print(list(set))
# print(dict(zip(set,set1)))

#第六题
dict = {"name":"zhang","age":"aa"}
print(str(dict))
print(tuple(dict.items()))
print(list(dict.items()))
print(set(dict.items()))

